|
|
@@ -150,8 +150,8 @@ source /app/.env
|
150
|
150
|
|
151
|
151
|
# Fixup the Procfile and prepare the PORT
|
152
|
152
|
[ -n "\${DO_NOT_RUN_JOBS}" ] && perl -pi -e 's/^jobs:/#jobs:/' /app/Procfile
|
153
|
|
-perl -pi -e 's/rails server\$/rails server -b 0.0.0.0 -p \\\$PORT/' /app/Procfile
|
154
|
|
-export PORT
|
|
153
|
+perl -pi -e 's/rails server -b0.0.0.0\$/rails server -b 0.0.0.0 -p \\\$PORT/' /app/Procfile
|
|
154
|
+export PORT="\${PORT:-3000}"
|
155
|
155
|
|
156
|
156
|
# Start huginn
|
157
|
157
|
exec sudo -u huginn -EH bundle exec foreman start
|